home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / source / xdme_1.84_src.lha / XDME / Lib / include / malloc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-24  |  404 b   |  19 lines

  1.  
  2. #if defined(MALLOC_DEBUG)
  3. #if MALLOC_DEBUG
  4.  
  5. #include <stdlib.h>
  6. #include <string.h>
  7.  
  8. static const char *_FileName = __FILE__;
  9.  
  10. #define malloc(x) xmalloc(x,_FileName, __LINE__)
  11. #define strdup(x) xstrdup(x,_FileName, __LINE__)
  12.  
  13. extern void*xmalloc(int,          const char *, int);
  14. extern void xfree  (void*,        const char *, int);
  15. extern char*xstrdup(const char *, const char *, int);
  16.  
  17. #endif
  18. #endif
  19.